local app = {}

function app.getPower()
	local state, percent, seconds = love.system.getPowerInfo()
	return percent
end

function app.update()
return {
	{name = 'row', size=1, color={0.9,0.9,0.9}, content = {
		{name = 'row', size=0.1, color={0.97,0.99,1}, radius=15, padding=10, content={
			{name = 'label', text="Info", color={0,0,0}}
		}},
		

		{name = 'row', size=0.2, content={
			{name = 'column', size=0.5, color={0.97,0.99,1}, radius=15, padding=10, content={{name='label', text="OS: "..love.system.getOS(), color={0,0,0}}}},
			{name = 'column', size=0.5, color={0.97,0.99,1}, radius=15, padding=10, content={{name='label', text="Logical Cores: "..love.system.getProcessorCount(), color={0,0,0}}}}
		}},

		{name = 'row', size=0.2, content={
			{name = 'column', size=0.5, color={0.97,0.99,1}, radius=15, padding=10, content={{name='label', text="Power: "..app.getPower().."%", color={0,0,0}}}},
			{name = 'column', size=0.5, color={0.97,0.99,1}, radius=15, padding=10, content={{name='label', text="pos: ("..mx..":"..my..")", color={0,0,0}}}}
		}},

		{name = 'row', size=0.2, content={
			{name = 'column', size=0.5, color={0.97,0.99,1}, radius=15, padding=10, content={{name='label', text="DPI scale: "..love.window.getDPIScale(), color={0,0,0}}}},
			{name = 'column', size=0.5, color={0.97,0.99,1}, radius=15, padding=10, content={{name='label', text="Window: ("..width..":"..height..")", color={0,0,0}}}}
		}},

		{name = 'row', size=0.2, content={
			{name = 'column', size=0.5, color={0.97,0.99,1}, radius=15, padding=10, content={{name='label', text="FPS: "..love.timer.getFPS(), color={0,0,0}}}},
			{name = 'column', size=0.5, color={0.97,0.99,1}, radius=15, padding=10, content={{name='label', text="Time: "..math.ceil(love.timer.getTime()), color={0,0,0}}}}
		}},
	}},
}
end

return app